package com.css.zfzx.sjcj.modules.hddcGeochemicalSvyLine.repository;

import com.css.zfzx.sjcj.modules.hddcGeochemicalSvyLine.repository.entity.HddcGeochemicalsvylineEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author zhangcong
 * @date 2020-11-28
 */
public interface HddcGeochemicalsvylineRepository extends JpaRepository<HddcGeochemicalsvylineEntity, String> {
    @Query(nativeQuery = true,value = "select * from hddc_geochemicalsvyline where  id =?1 and is_valid=1")
    HddcGeochemicalsvylineEntity findbyId(String svypointid);
    HddcGeochemicalsvylineEntity findByUuidAndIsValid(String id, String isValid);
}
